<%@ page language="java" import="java.util.*,com.ncbuct.bean.ClassBean" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'xuanxiutable.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

   <style>
*{
	margin:0px;
	padding:0px;
}

body {
	font-size: 12px;
	text-align: center;
	background-color:transparent
}
#tab {
	height: 400px;
	width: 615px;
	margin-right: auto;
	margin-left: auto;
	padding-top: 30px;
}
#tab #top #tleft {
	background-image: url(images/xuanxiu_left.gif);
	float: left;
	height: 42px;
	width: 15px;
}
#tab #top #tmiddle {
	float: left;
	height: 32px;
	width: 563px;
	background-image: url(images/xuanxiu_bg.gif);
	font-size: 18px;
	padding-left: 20px;
	padding-top: 10px;
}
#tab #top #tright {
	background-image: url(images/xuanxiu_right.gif);
	height: 42px;
	width: 13px;
	float: left;
}
#tab #content {
	height: 400px;
	width: 615px;
	list-style-type: none;
}
#tab #top #tmiddle ul li {
	float: left;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #333;
}
#tab #top #tmiddle ul {
	list-style-type: none;
}
  #tab #top {
	height: 42px;
	width: 615px;
}
#tab #top #tmiddle ul .second {
	float: left;
	width: 200px;
}
  #tab #top #tmiddle ul .third {
	width: 100px;
}
  #tab #top #tmiddle ul .forth {
	width: 80px;
	border-right-style: none;
}
#tab #content table #form1 tr td input {
	background-color: #9C0;
	border: 1px solid #666;
	text-align: center;
	height: 20px;
}
  </style>
  </head>
  <body>
  <div id="tab">
    <div id="top">
      <div id="tleft"></div>
      <div id="tmiddle"><ul>
       <li class="forth">选修</li>
        <li> 课程号 </li>
        <li class="second">课程名</li>
        <li class="third">上课时间</li>
        <li class="third">上课地点 </li>
       
      </ul></div>
	<div id="tright"></div>
    </div>
    <div id="content">
    <form action="<%=basePath%>/servlet/ClassSelectServlet" method="post">
    	 <table width="611" border="1" cellspacing="0" cellpadding="0"  bordercolor="#99CC00">
      <%
      List classlist=(List)request.getSession().getAttribute("classlist");
      Iterator iter=classlist.iterator();
      while(iter.hasNext()){
      ClassBean classbean=(ClassBean)iter.next();
      
       %>  
     
      <tr>
        <td width="12%" align="center" bgcolor="#CCCCCC"><input type="checkbox"name="selectclass" value="<%=classbean.getClass_code() %>"></td>
        <td width="8%" height="30" align="center" bgcolor="#CCCCCC"><%=classbean.getClass_code() %></td>
        <td width="25%" align="center" bgcolor="#CCCCCC"><%=classbean.getCalss_name() %></td>
        <td width="13%" align="center" bgcolor="#CCCCCC"><%=classbean.getClass_address() %></td>
        <td width="17%" align="center" bgcolor="#CCCCCC"><%=classbean.getClass_time() %></td>
       
      </tr>
       <%
      }
      
      
       %>
      
   
    </table>
      </form>
    </div>
  </div>
   
  </body>
  </html>
<script>




</script>
